{% extends 'base_with_top_menu.html' %}

{% load go_back_link %}

{% block title %}List of configurable options{% endblock %}

{% block header %}List of configurable options{% endblock %}

{% block content %}
    {% if display_tips %}
    <div class="tip">
      <ol>
        <li><p>0 and 1 usually mean boolean False and True. In general option's name should tell you what is it's type.</p></li>
      </ol>
    </div>
    {% endif %}

    {% go_back_link "Go back" %}

    <div class="config_options_wrapper">
      {% if options %}
      {% for opt in options %}
      <div class="option">
        <!-- <dt class="key">{{opt.key}} <a href="/entelib/admin/baseapp/configuration/{{opt.key}}/"><img src="/media/images/edit.png" alt="edit"></a></dt> -->
        <dt class="key">{{opt.key}}    {%if opt.can_override%}<a href="{{opt.key}}/"><img src="/media/images/edit.png" alt="edit"></a> {%endif%}  </dt>
        <dd class="value">{{opt.value}}</dd>
        <dd class="desc">{{opt.description}}</dd>
      </div>
      {% endfor %}
      {% else %}
      <p>No config options were found.</p>
      {% endif %}
    </div>

    {% go_back_link "Go back" %}

{% endblock %}
